package com.app.service.impl;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.app.dao.SeriesDao;
import com.app.entity.Series;
import com.app.service.SeriesService;

@Service
@Transactional(readOnly=true)
public class SeriesServiceImpl implements SeriesService {
	@Autowired
	private SeriesDao seriesDao;

	@Transactional(readOnly=false)
	public void SaveOrUpdateSeries(Series series) {
		seriesDao.SaveOrUpdateSeries(series);
	}

	@Transactional(readOnly=false)
	public void deleteSeries(String idStr) {
		seriesDao.deleteSeries(idStr);
	}

	@Override
	public Collection<Series> findSeriesByParameter(Series series) {
		return seriesDao.findSeriesByParameter(series);
	}

	@Override
	public Series load(Integer id) {
		return seriesDao.load(id);
	}

}
